package com.dragon.modules.yuegou.entity.wallet;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 悦币发放（企业向会员发放悦币，历史遗留问题，2.0之后版本不会出现发放悦币的情况）实体类<br>
 * 对应的表为：walt_member_grant<br>
 * 
 * @author pbuilder generated
 * @date 2019-06-03 15:20:36
 * @company sgy
 * @version 2.0
 */
@TableName("walt_member_grant")
@ApiModel(description = "悦币发放（企业向会员发放悦币，历史遗留问题，2.0之后版本不会出现发放悦币的情况）")
public class MemberGrantEntity {

    /**  */
	protected String id;

    /** 企业ID */
	@ApiModelProperty("企业ID")
	protected String companyId;

    /** 会员ID */
	@ApiModelProperty("会员ID")
	protected String memberId;

    /**  */
	protected String memberWalletId;

    /** 发放悦币额度 */
	@ApiModelProperty("发放悦币额度")
	protected BigDecimal amount;

    /** 充值前悦币余额 */
	@ApiModelProperty("充值前悦币余额")
	protected BigDecimal amountBefore;

    /** 充值后悦币余额 */
	@ApiModelProperty("充值后悦币余额")
	protected BigDecimal amountAfter;

    /** 备注 */
	@ApiModelProperty("备注")
	protected String remarks;

    /** 创建人 */
	@ApiModelProperty("创建人")
	protected String createdBy;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空悦币发放（企业向会员发放悦币，历史遗留问题，2.0之后版本不会出现发放悦币的情况）实体对象
	 */
	public MemberGrantEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个悦币发放（企业向会员发放悦币，历史遗留问题，2.0之后版本不会出现发放悦币的情况）实体对象
	 * 
	 * @param other 其它对象
	 */
	public MemberGrantEntity(MemberGrantEntity other){
		super();
     	this.id = other.id;
     	this.companyId = other.companyId;
     	this.memberId = other.memberId;
     	this.memberWalletId = other.memberWalletId;
     	this.amount = other.amount;
     	this.amountBefore = other.amountBefore;
     	this.amountAfter = other.amountAfter;
     	this.remarks = other.remarks;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取企业ID
	 * 
	 * @return companyId 企业ID
	 */
	public String getCompanyId() {
		return companyId;
	}
  	
	/**
	 * 设置企业ID
	 * 
	 * @param companyId 企业ID
	 */
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	/**
	 * 获取会员ID
	 * 
	 * @return memberId 会员ID
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * 
	 * @return memberWalletId 
	 */
	public String getMemberWalletId() {
		return memberWalletId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param memberWalletId 
	 */
	public void setMemberWalletId(String memberWalletId) {
		this.memberWalletId = memberWalletId;
	}

	/**
	 * 获取发放悦币额度
	 * 
	 * @return amount 发放悦币额度
	 */
	public BigDecimal getAmount() {
		return amount;
	}
  	
	/**
	 * 设置发放悦币额度
	 * 
	 * @param amount 发放悦币额度
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * 获取充值前悦币余额
	 * 
	 * @return amountBefore 充值前悦币余额
	 */
	public BigDecimal getAmountBefore() {
		return amountBefore;
	}
  	
	/**
	 * 设置充值前悦币余额
	 * 
	 * @param amountBefore 充值前悦币余额
	 */
	public void setAmountBefore(BigDecimal amountBefore) {
		this.amountBefore = amountBefore;
	}

	/**
	 * 获取充值后悦币余额
	 * 
	 * @return amountAfter 充值后悦币余额
	 */
	public BigDecimal getAmountAfter() {
		return amountAfter;
	}
  	
	/**
	 * 设置充值后悦币余额
	 * 
	 * @param amountAfter 充值后悦币余额
	 */
	public void setAmountAfter(BigDecimal amountAfter) {
		this.amountAfter = amountAfter;
	}

	/**
	 * 获取备注
	 * 
	 * @return remarks 备注
	 */
	public String getRemarks() {
		return remarks;
	}
  	
	/**
	 * 设置备注
	 * 
	 * @param remarks 备注
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * 获取创建人
	 * 
	 * @return createdBy 创建人
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("MemberGrantEntity{").
			append("id=").append(id).
			append(",companyId=").append(companyId).
			append(",memberId=").append(memberId).
			append(",memberWalletId=").append(memberWalletId).
			append(",amount=").append(amount).
			append(",amountBefore=").append(amountBefore).
			append(",amountAfter=").append(amountAfter).
			append(",remarks=").append(remarks).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public MemberGrantEntity copy() {
		return new MemberGrantEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 企业ID */
	public static final String COL_COMPANY_ID = "company_id";

    /** 会员ID */
	public static final String COL_MEMBER_ID = "member_id";

    /**  */
	public static final String COL_MEMBER_WALLET_ID = "member_wallet_id";

    /** 发放悦币额度 */
	public static final String COL_AMOUNT = "amount";

    /** 充值前悦币余额 */
	public static final String COL_AMOUNT_BEFORE = "amount_before";

    /** 充值后悦币余额 */
	public static final String COL_AMOUNT_AFTER = "amount_after";

    /** 备注 */
	public static final String COL_REMARKS = "remarks";

    /** 创建人 */
	public static final String COL_CREATED_BY = "created_by";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
